$color-white: #fff;
$color-primary-light: #01AAED;
$color-primary: #1e9fff;
$spacing: 40px;
$spacing-half: 20px;
$line-width: 1px;
$line-color: #888;
$item-font-size: 14px;

.un-org-tree,
.un-org-tree * {
    margin: 0;
    padding: 0;
    list-style: none;
    border-collapse: collapse;
}
.un-org-tree--wrapper{
    width: 100%;
    overflow: auto;
    box-sizing: border-box;
    .un-org-tree {
        width: min-content;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
        overflow: hidden;
        height: max-content;
        .un-org-tree-item {
            margin: 0 5px;
            &:nth-child(2) {
                margin-left: 0;
            }
            &:last-child {
                margin-right: 0;
            }
            font-size: $item-font-size;
            & > span {
                display: inline-block;
                
                margin-bottom: $spacing;
                background-color: $color-white;
                position: relative;
                border: $line-width solid $line-color;
                span{
                    display: inline-block;
                    padding: 5px 8px;
                    cursor: pointer;
                }
            }
            

            /** 子项 S */
            .un-org-tree-item-childer {
                display: flex;
                flex-direction: row;
                position: relative;
                justify-content: center;
            }
            /** 子项 E */
        }

        .leaf > span::after {
            display: none;
            visibility: hidden;
        }
    }
    .un-org-tree--horizontal-line {
        display: block;
        height: 2px;
        width: 100%;
        background: $line-color;
        transform:scaleY(0.5);
        position: absolute;
        top: -$spacing-half - 1;
        z-index: 1;
    }
    .un-org-tree--vertical-line{
        display: block;
        width: 1px;
        height: $spacing-half;
        background: $line-color;
        position: absolute;
        left: 50%;
        &.top {
            top: -$spacing-half - 1;
            transform: translateX(-50%);
        }
        &.bottom {
            bottom:  -$spacing-half - 1;
            transform: translateX(-50%);
        }
    }
    
}
